//
// Decompiled by Jadx - 436ms
//
package gf;

import a.g;
import a.i;
import android.annotation.SuppressLint;
import android.text.TextUtils;
import android.widget.TextView;
import androidx.activity.b;
import fg.f;
import fi.c;
import fi.e;
import fi.w;
import fn.j;
import fn.x;
import fn.y;
import fp.h;
import java.util.ArrayList;
import me.plusne.GreenDao.dao.RecordLogDao;
import me.plusne.common.Json.JsonHookStatic;
import o.a;
import x.d;

@a("WX")
public final class p extends x {

    @SuppressLint({"StaticFieldLeak"})
    public static TextView cp = null;
    public static String cq = null;
    public static int cr = 0;
    public static boolean cs = true;

    @SuppressLint({"StaticFieldLeak"})
    public static w ct;
    public static final ArrayList cu = new ArrayList();

    @SuppressLint({"StaticFieldLeak"})
    public static fg.x cv;
    public static Object cw;
    public static Object cx;
    public w cy;

    public static void cz() {
        Object obj = cx;
        if (obj != null) {
            j.ab(obj, "setText", new Object[]{""});
        }
    }

    public static void da(c cVar) {
        w wVar = ct;
        if (wVar != null) {
            wVar.az();
        }
        String cf = y.cf("secretFriend_allShowPass", "");
        if (!TextUtils.isEmpty(cf)) {
            w wVar2 = new w(y.by.getActivity());
            wVar2.bj(fi.e.INPUT);
            wVar2.aj = "请输入操作密码";
            wVar2.bb();
            wVar2.ap = false;
            wVar2.w = new f(11, cf, cVar);
            wVar2.bk();
            ct = wVar2;
            wVar2.c.setCanceledOnTouchOutside(false);
            ct.c.setOnDismissListener(new h(6));
            return;
        }
        cVar.c();
    }

    public static void db(w wVar) {
        if (wVar != null) {
            c.a ba = wVar.ba("ShowFriend");
            StringBuilder sb = new StringBuilder("已显示密友数量[<font color='#0088FF'>");
            JsonHookStatic jsonHookStatic = y.by;
            RecordLogDao recordLogDao = jsonHookStatic.getDb().v;
            g o = b.o(recordLogDao, recordLogDao);
            d dVar = RecordLogDao.Properties.Type;
            o.l(dVar.f(691), new i[0]);
            d dVar2 = RecordLogDao.Properties.Value;
            o.l(dVar2.f("0"), new i[0]);
            sb.append(o.h());
            sb.append("</font>]");
            ba.setDesc(sb.toString());
            wVar.av(ba);
            c.a ba2 = wVar.ba("HideFriend");
            StringBuilder sb2 = new StringBuilder("已隐藏密友数量[<font color='#0088FF'>");
            RecordLogDao recordLogDao2 = jsonHookStatic.getDb().v;
            g o2 = b.o(recordLogDao2, recordLogDao2);
            o2.l(dVar.f(691), new i[0]);
            o2.l(dVar2.f("1"), new i[0]);
            sb2.append(o2.h());
            sb2.append("</font>]");
            ba2.setDesc(sb2.toString());
            wVar.av(ba2);
        }
    }

    public final void a() {
        j.bd("com.tencent.mm.ui.LauncherUI", "onResume", new Object[]{new a(this)});
        j.ay("com.tencent.mm.ui.tools.ActionBarSearchView", new b(this));
    }
}
